using System;
using System.ComponentModel.DataAnnotations;

namespace SIOGDE.AccesoDatos.Entidades
{
 public partial class Media
 {
     public Media()
     {
     }
     
     public virtual int   Id { get; set;}

     [StringLength(100, ErrorMessage = "{0} debe tener al menos {2} caracteres.", MinimumLength = 2)]
     [Display(Name = "GuidSolicitante")]
     public virtual string   GuidSolicitante { get; set;}

     [Display(Name = "Recurso")]
     public virtual byte[]   Recurso { get; set;}

     [Required(ErrorMessage="FechaCreacion es requerido.")]
     [DataType(DataType.Date)]
     [Display(Name = "FechaCreacion")]
     public virtual DateTime   FechaCreacion { get; set;}

     [StringLength(100, ErrorMessage = "{0} debe tener al menos {2} caracteres.", MinimumLength = 2)]
     [Display(Name = "TituloRecurso")]
     public virtual string   TituloRecurso { get; set;}
     
     [StringLength(100, ErrorMessage = "{0} debe tener al menos {2} caracteres.", MinimumLength = 2)]
     [Display(Name = "Descripcion")]
     public virtual string Descripcion { get; set; }
     
     [StringLength(100, ErrorMessage = "{0} debe tener al menos {2} caracteres.", MinimumLength = 2)]
     [Display(Name = "TituloFichero")]
     public virtual string TipoFichero { get; set; }

 }
}

